package cn.fastoo.common.utils;

/**
 * Created by hp on 2017/8/11.
 */
public class Constant {

    public static  final String REDIS_HOST = "114.55.103.169";
//    	public static  final String REDIS_HOST = "r-bp18752006d35264.redis.rds.aliyuncs.com";
    public static  final String REDIS_PORT = "6379";
    public static  final String REDIS_AUTH = "Santo2017";
    public static  final int DB = 2;

    public static  final String FORMAT_YMD = "yyyy-MM-dd";
    public static  final String FORMAT_YMD_HM = "yyyy-MM-dd HH:mm";
    public static  final String FORMAT_YMD_HMS = "yyyy-MM-dd HH:mm:ss";


    /***************************枚举************************************/
    public enum EnumTest {
        MON, TUE, WED, THU, FRI, SAT, SUN;
    }
    public enum MtStatus {
        Unsubmit(0),Success(1),Fail(2);
        private int value;

        private MtStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    public enum DrStatus {
        UnDr(0),Success(1),Fail(2);
        private int value;

        private DrStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    public enum BatchStatus {
        Normal(1),Cancel(-1),Stop(0),Sended(2);
        private int value;
//(1启动 0暂停 -1取消 2已发送)
        private BatchStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    public enum UserStatus {
        Normal(1),Cancel(-1);
        private int value;

        private UserStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    public enum UserType {
        Company(1),Person(2);
        private int value;

        private UserType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
    public enum TemplateStatus {
        UnSign(0),Normal(1);
        private int value;

        private TemplateStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    public enum SignStatus {
        UnSign(0),Normal(1);
        private int value;

        private SignStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    public static void main(String[] args) {

    }

}
